package com.leemz.design.chapter7.none;

public class MainBoardFactory {
    public static MainBoardApi createMainBoardApi(int type) {
        MainBoardApi mainBoardApi = null;
        if(1 == type) {
            mainBoardApi = new GAMainBoard(1156);
        } else if(2 == type) {
            mainBoardApi = new MSIMainBoard(939);
        }
        return mainBoardApi;
    }
}
